import Vue from 'vue'
import App from './App'
//引入vuex
import store from './store'
import websocket from "./common/utils/websocket";
import operate from "./common/utils/operate";
Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$store = store

let socket = new websocket(operate.wsHost + operate.wsUrl, 5000, store)
Vue.prototype.$websocket = socket
//  onLoad 在 onLaunch 之前执行解决方案
/*Vue.prototype.$onLaunched = new Promise(resolve => {
  Vue.prototype.$isResolve = resolve
})*/

const app = new Vue({
	...App,
	store,
})
app.$mount()
